package com.payment.service.impl;


import com.payment.service.TransService;
import com.payment.trans.AbstractTrans;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: AbstractTrans
 * @Description:
 * @author: fengcheng
 * @date: 2021/03/25
 */
@Service
public class TransServiceImpl implements TransService {


    @Autowired
    private Map<String, AbstractTrans> transMap = new HashMap<String, AbstractTrans>();

    @Override
    public AbstractTrans getTrans(String transCode) {
        return transMap.get(transCode);
    }

}
